How Do I Use Clean Templates For Java Engine?
The CleanTemplates class is a batch tool that installs with the Java Engine, which allows you to clean a group of templates in order to convert them to a newer version of Windward.
#
BackgroundThis will update all tags to the mode desired, adjust selects to match the new auto-detect of select/value/evaluate, and remove the quotes on '${var}' if you have switched to set parameter (suggested).
The template file(s) is a path where the filename component can have wildcards. So it can be c:\templates\*.rtf
. The output directory is the directory to place the cleaned templates in. It can be the same directory only if the file extension is changing, i.e. you cannot overwrite the template with a cleaned template.
If you do not list a data source the selects against that data source will not be changed.
#
UsageAlways make a back up copy of your templates before using this tool
Usage:
Options are:
Data sources are:
- -sql:name
- -xml:name
#
From the Command lineHere's and example of what you might type to make adjustments from the command line: